/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package caintra.Sapra.ComponentsImplements;

import nextapp.echo2.app.Alignment;
import nextapp.echo2.app.Border;
import nextapp.echo2.app.Color;
import nextapp.echo2.app.Extent;
import nextapp.echo2.app.TextField;


/**
 *
 * @author Administrador
 */
public class TextFieldCaintra extends TextField{

    public TextFieldCaintra(int width,int longitud){
        setBackground(new Color(227,251,254));
        setForeground(Color.BLACK);
        setBorder(new Border(1, Color.BLACK, Border.STYLE_GROOVE));
        setWidth(new Extent(width));
        setHeight(new Extent(20));
        setEnabled(true);
        setVisible(true);
        setAlignment(Alignment.ALIGN_RIGHT);
        setMaximumLength(longitud);
    }

}
